/* eslint-disable */
/* tslint:disable */
/*
 * ---------------------------------------------------------------
 * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API        ##
 * ##                                                           ##
 * ## AUTHOR: acacode                                           ##
 * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
 * ---------------------------------------------------------------
 */

import { AxiosResponse } from 'axios'
import {
  LotBasketCodeAddInput,
  ReceiveWorkParamAddInput,
  ResultOutputIEnumerableLotBasketCodeListOutput,
  ResultOutputIEnumerableProductOfflineOutput,
  ResultOutputProcessDataResultOutput,
  ResultOutputProductionShowOutput,
} from './data-contracts'
import { ContentType, HttpClient, RequestParams } from './http-client'

export class ExternalApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
  /**
   * No description
   *
   * @tags external
   * @name ReceiveWorkParam
   * @summary 接收外来加工数据
   * @request POST:/api/Industry/external/receive-work-param
   * @secure
   */
  receiveWorkParam = (data: ReceiveWorkParamAddInput[], params: RequestParams = {}) =>
    this.request<AxiosResponse, any>({
      path: `/api/Industry/external/receive-work-param`,
      method: 'POST',
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    })
  /**
   * No description
   *
   * @tags external
   * @name AddLotBasketCode
   * @summary 接收清洗篮绑定
   * @request POST:/api/Industry/external/add-lot-basket-code
   * @secure
   */
  addLotBasketCode = (data: LotBasketCodeAddInput, params: RequestParams = {}) =>
    this.request<AxiosResponse, any>({
      path: `/api/Industry/external/add-lot-basket-code`,
      method: 'POST',
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    })
  /**
   * No description
   *
   * @tags external
   * @name SendLotBasketCodeList
   * @summary 发送清洗篮批次绑定数据
   * @request POST:/api/Industry/external/send-lot-basket-code-list
   * @secure
   */
  sendLotBasketCodeList = (params: RequestParams = {}) =>
    this.request<ResultOutputIEnumerableLotBasketCodeListOutput, any>({
      path: `/api/Industry/external/send-lot-basket-code-list`,
      method: 'POST',
      secure: true,
      format: 'json',
      ...params,
    })
  /**
   * No description
   *
   * @tags external
   * @name SendProductLineOverView
   * @summary 发送今日加工详情
   * @request POST:/api/Industry/external/send-product-line-over-view
   * @secure
   */
  sendProductLineOverView = (params: RequestParams = {}) =>
    this.request<ResultOutputProcessDataResultOutput, any>({
      path: `/api/Industry/external/send-product-line-over-view`,
      method: 'POST',
      secure: true,
      format: 'json',
      ...params,
    })
  /**
   * No description
   *
   * @tags external
   * @name SendProductOfflineRecord
   * @summary 发送产品下线记录
   * @request POST:/api/Industry/external/send-product-offline-record
   * @secure
   */
  sendProductOfflineRecord = (params: RequestParams = {}) =>
    this.request<ResultOutputIEnumerableProductOfflineOutput, any>({
      path: `/api/Industry/external/send-product-offline-record`,
      method: 'POST',
      secure: true,
      format: 'json',
      ...params,
    })
  /**
   * No description
   *
   * @tags external
   * @name SendProductionShow
   * @summary 发送生产展示信息
   * @request POST:/api/Industry/external/send-production-show
   * @secure
   */
  sendProductionShow = (params: RequestParams = {}) =>
    this.request<ResultOutputProductionShowOutput, any>({
      path: `/api/Industry/external/send-production-show`,
      method: 'POST',
      secure: true,
      format: 'json',
      ...params,
    })
}
